package com.cyy.demo.test.extend;

import java.util.ArrayList;
import java.util.List;

public abstract class Father1 {

    public String name = "father";

    protected int age = 10;

    String sex  = "男";

    private double money;

    protected List<String> clothes = new ArrayList<>();


    public Father1() {
        this.money = 10;
        for (int i = 0; i < 5; i++) {
            clothes.add(i+"");
        }
    }


    @Override
    public String toString() {
        return "Father{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", money=" + money +
                '}';
    }
}
